#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct Info {
  char pora_roku[10];
};
typedef struct Info info;
typedef struct Node *link;
typedef struct Node node;

struct Node {
  info item;
  link next;
};

int main()
{
  link t1, t2, t3, t4;
  t1 = (node*)malloc(sizeof(node ));
  t2 = (node*)malloc(sizeof(node ));
  t3 = (node*)malloc(sizeof(node ));
  t4 = (node*)malloc(sizeof(node ));
  strcpy(t1->item.pora_roku, "wiosna");
  strcpy(t2->item.pora_roku, "lato");
  strcpy(t3->item.pora_roku, "jesien");
  strcpy(t4->item.pora_roku, "zima");
  t1->next = t2;
  t2->next = t3;
  t3->next = t4;
  t4->next = t1;
  printf("%s ", t1->item.pora_roku);
  printf("%s ", (t1->next)->item.pora_roku);
  printf("%s ", ((t1->next)->next)->item.pora_roku);
  printf("%s ", (((t1->next)->next)->next)->item.pora_roku);
  printf("%s ", ((((t1->next)->next)->next)->next)->item.pora_roku);
  return 0;
}
